home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / s2p.1 < prev    next >
Text File  |  1995-07-25  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.      SSSS2222PPPP((((1111))))                 UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((NNNNEEEEWWWW))))                 SSSS2222PPPP((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           s2p - Sed to Perl translator
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           ssss2222pppp [[[[ooooppppttttiiiioooonnnnssss]]]] ffffiiiilllleeeennnnaaaammmmeeee
  13.  
  14.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.           _S_2_p takes a sed script specified on the command line (or
  16.           from standard input) and produces a comparable _p_e_r_l script
  17.           on the standard output.
  18.  
  19.           OOOOppppttttiiiioooonnnnssss
  20.  
  21.           Options include:
  22.  
  23.           ----DDDD<<<<nnnnuuuummmmbbbbeeeerrrr>>>>
  24.                sets debugging flags.
  25.  
  26.           ----nnnn   specifies that this sed script was always invoked with
  27.                a sed -n.  Otherwise a switch parser is prepended to
  28.                the front of the script.
  29.  
  30.           ----pppp   specifies that this sed script was never invoked with a
  31.                sed -n.  Otherwise a switch parser is prepended to the
  32.                front of the script.
  33.  
  34.           CCCCoooonnnnssssiiiiddddeeeerrrraaaattttiiiioooonnnnssss
  35.  
  36.           The perl script produced looks very sed-ish, and there may
  37.           very well be better ways to express what you want to do in
  38.           perl.  For instance, s2p does not make any use of the split
  39.           operator, but you might want to.
  40.  
  41.           The perl script you end up with may be either faster or
  42.           slower than the original sed script.  If you're only
  43.           interested in speed you'll just have to try it both ways.
  44.           Of course, if you want to do something sed doesn't do, you
  45.           have no choice.  It's often possible to speed up the perl
  46.           script by various methods, such as deleting all references
  47.           to $\ and chop.
  48.  
  49.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  50.           S2p uses no environment variables.
  51.  
  52.      AAAAUUUUTTTTHHHHOOOORRRR
  53.           Larry Wall <lwall@jpl-devvax.Jpl.Nasa.Gov>
  54.  
  55.      FFFFIIIILLLLEEEESSSS
  56.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  57.           perl The perl compiler/interpreter
  58.           a2p  awk to perl translator
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 3/9/94)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      SSSS2222PPPP((((1111))))                 UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((NNNNEEEEWWWW))))                 SSSS2222PPPP((((1111))))
  71.  
  72.  
  73.  
  74.      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  75.      BBBBUUUUGGGGSSSS
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.      Page 2                                           (printed 3/9/94)
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.